package xyz.chenyongpeng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import xyz.chenyongpeng.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息发送权限表
 * </p>
 *
 * @author chenyongpeng
 * @since 2018-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="ZsMessageAccess对象", description="消息发送权限表")
public class ZsMessageAccess extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "ma_id", type = IdType.AUTO)
    private Integer maId;

    @ApiModelProperty(value = "微信OpenID")
    private String wxOpenid;

    @ApiModelProperty(value = "form_id 或者 prepay_id 值")
    private String formId;

    @ApiModelProperty(value = "ID的类型，1 ：表单提交，2：支付。")
    private Boolean idType;

    @ApiModelProperty(value = "剩余次数，表单提交 = 1 ，支付 = 3")
    private Boolean remainder;

    @ApiModelProperty(value = "订单ID")
    private Integer oId;

    @ApiModelProperty(value = "订单的编号")
    private String orderSn;

    @ApiModelProperty(value = "生成时间，7天有效。")
    private Integer createTime;


}
